<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      brotli-1.0.7
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;9.&nbsp;General Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="boost.html" title="Boost-1.72.0">Prev</a>
          <p>
            Boost-1.72.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="clucene.html" title=
          "CLucene-2.3.3.4">Next</a>
          <p>
            CLucene-2.3.3.4
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genlib.html" title=
          "Chapter&nbsp;9.&nbsp;General Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="brotli" name="brotli"></a>brotli-1.0.7
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Brotli
        </h2>
        <p>
          <span class="application">Brotli</span> provides a general-purpose
          lossless compression algorithm that compresses data using a
          combination of a modern variant of the LZ77 algorithm, Huffman
          coding and 2nd order context modeling. Its libraries are
          particularly used for WOFF2 fonts on webpages.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://github.com/google/brotli/archive/v1.0.7/brotli-v1.0.7.tar.gz">
                https://github.com/google/brotli/archive/v1.0.7/brotli-v1.0.7.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 7b6edd4f2128f22794d0ca28c53898a5
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 23 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 43 MB (add 5 MB if installing
                both sets of python bindings, add 9 MB for the main test and
                5MB for testing the bindings)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.2 SBU (add 0.3 SBU for the python
                bindings, and 1.2 SBU if testing them)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Brotli Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="cmake.html" title=
          "CMake-3.17.0">CMake-3.17.0</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="lua.html" title="Lua-5.3.5">Lua-5.3.5</a> (to
          create Lua bindings) and <a class="xref" href="python2.html" title=
          "Python-2.7.17">Python-2.7.17</a> (to create python2 bindings)
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/brotli">http://wiki.linuxfromscratch.org/blfs/wiki/brotli</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Brotli
        </h2>
        <p>
          Install <span class="application">brotli</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">mkdir out &amp;&amp;
cd    out &amp;&amp;

cmake -DCMAKE_INSTALL_PREFIX=/usr \
      -DCMAKE_BUILD_TYPE=Release  \
      ..  &amp;&amp;
make</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          test</strong></span>.
        </p>
        <p>
          If desired, either or both sets of python bindings can be built and
          installed without any conflicts. If you need the <span class=
          "application">Python2</span> bindings, add or substitute
          <span class="command"><strong>python2</strong></span> for
          <span class="command"><strong>python3</strong></span> in the
          following instructions:
        </p>
        <pre class="userinput">
<kbd class="command">pushd ..               &amp;&amp;
python3 setup.py build &amp;&amp;
popd</kbd>
</pre>
        <p>
          If you wish to test the bindings, go back to the top-level
          directory and issue: <span class="command"><strong>python3 setup.py
          test</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install &amp;&amp;
cd ..</kbd>
</pre>
        <p>
          If you have built either or both sets of <span class=
          "application">python</span> bindings, install them as the
          <code class="systemitem">root</code> user (as before, use the
          appropriate version(s) of <span class="application">python</span>:
        </p>
        <pre class="root">
<kbd class="command">python3 setup.py install --optimize=1</kbd>
</pre>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">brotli</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libbrotlicommon{-static.a,.so},
              libbrotlidec{,-static,.so} and
              libbrotlienc{,-static,.so}</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">/usr/include/brotli</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="brotli-prog" name="brotli-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>brotli</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    can compress or decompress files, or test the integrity
                    of compressed files.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libbrotlicommon" name=
                    "libbrotlicommon"></a><span class="term"><code class=
                    "filename">libbrotlicommon{-static.a,.so}</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the Brotli common dictionary library.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libbrotlidec" name="libbrotlidec"></a><span class=
                    "term"><code class=
                    "filename">libbrotlidec{-static.a,.so}</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the Brotli decoder library.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libbrotlienc" name="libbrotlienc"></a><span class=
                    "term"><code class=
                    "filename">libbrotlienc{-static.a,.so}</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the Brotli common encoder library.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-16 20:46:23 -0600
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="boost.html" title="Boost-1.72.0">Prev</a>
          <p>
            Boost-1.72.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="clucene.html" title=
          "CLucene-2.3.3.4">Next</a>
          <p>
            CLucene-2.3.3.4
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genlib.html" title=
          "Chapter&nbsp;9.&nbsp;General Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
